# Roll Event Store

**Roll Event Store for Business Partner Storage**
This endpoint facilitates the transition to a new event store for Business Partner Storage. The process involves several key steps:
**Validation:** Ensure that the collection associated with `previousEventStoreId` does not exist. If it does, rolling to a new event store is prohibited.
**Creation:** Establish a new collection intended to store events for the Business Partner Storage's event store.
**Backup:** Safeguard the current `eventStoreId` by storing it as `previousEventStoreId` within the Business Partner Storage Metadata.
**Assignment:** Update the Business Partner Storage Metadata by setting the new collection ID as the `eventStoreId`.
**Preservation:** Retain the `previousEventStoreId` without dropping it, as it is now prepared for backup.
This endpoint ensures a smooth transition while maintaining the integrity and accessibility of historical event data.

Endpoint: POST /v2/storages/{storageId}/eventstore/roll
Version: 5
Security: apiKey

## Security:

  - `apiKey` (unknown)
    apiKey in header X-API-KEY

## Path parameters:

  - `storageId` (string, required)
    Unique identifier of the Storage.

## Request fields (application/json):

  - `featuresOn` (array)
    Features to be activated when rolling the event store.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `status` (object)
    Details about status or error of a service

  - `status.code` (integer)
    RFC 7231 status code for this error.
    Example: 200

  - `status.technicalKey` (string)
    Technical key describing the status or error
    Example: OK

  - `status.details` (array)

  - `status.details.id` (integer, required)
    9-digit code which is uniquely identifying a message
    Example: 200000004

  - `status.details.message` (string, required)
    Human-readable message which may also be presented in user interface.
    Example: The job came to an end and finished successfully.

  - `status.details.technicalKey` (string)
    Technical key to uniquely identify a message.
    Example: JOB_FINISHED

  - `status.details.jsonPath` (string)
    JSONPath as specified by the IETF standard
    Example: $.businessPartner.names[0].value

  - `status.details.jsonRecord` (string)
    Object provided in plain JSON format.
    Example: { "key" : "value"}

  - `status.path` (string)
    Requested path which caused this error.
    Example: /v2/businesspartners/lookup

  - `status.timestamp` (string)
    ISO 8601 representation of the timestamp.
    Example: 2026-11-30T10:28:48Z

  - `newEventStoreId` (string)
    Internal ID of Event Store.
    Example: 72d6900fce6b326123f5d9d91049e3e6

  - `previousEventStoreId` (string)
    Internal ID of the event store that preceded the current one. It was created while event store roll.
    Example: 72d6900fce6b326123f5d9d91049e3e6

## Response 400:

  - `400` (unknown)
    Bad Request

